package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName("user") //实现表与对象的关联  如果名称一致(忽略大小写)可以省略表名
public class User implements Serializable {

	@TableId(type = IdType.AUTO)
	private Integer id; //主键,并且主键自增
	private String name;
	private Integer age;
	private String sex;
}
